<?php
//----------------------------------------------------------------------------//
// File              : V_LienHeShow										  //
// Modification       :														  //
//----------------------------------------------------------------------------//
// Date(yyyy.mm.dd)   Developer                       Action				  //
//----------------------------------------------------------------------------//
// 2007.03.05         Tran Thanh                     Created				  //
//----------------------------------------------------------------------------//
?>

<?php
function V_LienHeShow(&$arrayData,$mode="View"){
	
	global $arrayError, $LANG,$db;
//	return;
	$ulr = "?".MODUL."=lienHe&".ACTION."=send";//htmlspecialchars($_SERVER['QUERY_STRING']);
	
	include_once(DIR_MODEL."md_setting_web.class.php");
	$objModel = new MD_SettingWeb($db);
	$arrayDataSettingWeb = $objModel->getByWhere("*","");
?>
<script type="text/javascript">
	function Focus(){
		document.flienhe.hovaten.focus();
	}
	
</script>
<body onLoad="Focus();">
<form name="flienhe" action ="../run/main.php?modul=lienHe&action=send" method="POST" onSubmit="return sendMail(this);" >
<input name="to" type="hidden" value="" />
<input name="mail" type="hidden" value="<?=$arrayDataSettingWeb[0]['mail_bql']?>" checked>
<div class="title" style="margin-left:10px; width:10px; height:30px; float:left"></div><p style="float:left; line-height:30px; font-weight:bold; color:#FFFFFF; background: url(../images/modul_c.gif)">Liên hệ</p><div class="title2" style="width:10px; height:30px; float:left"></div><div style="clear:both"></div>
	<div class="bg_l_t"><div class="bg_r_t"><div class="bg_c_t"></div></div></div>

<table border="0" cellpadding="0" cellspacing="0" width="100%" class="khung_home" style="padding-top:20px; line-height:22px;">
	<tr>
    	<td><strong>Đơn vị chủ quản:</strong></td>
        <td style="padding-right:5px; "><?=$arrayDataSettingWeb[0]['don_vi_cq']?></td>
        <td><strong>VPGD:</strong></td>
        <td style="padding-right:10px; "><?=$arrayDataSettingWeb[0]['vpgd']?></td>
    </tr>
    <tr>
    	<td><strong>Địa chỉ:</strong></td>
        <td style="padding-right:5px; "><?=$arrayDataSettingWeb[0]['dia_chi']?></td>
        <td><strong>Email:</strong></td>
        <td style="padding-right:10px; "><?=$arrayDataSettingWeb[0]['mail_bql']?></td>
    </tr>
    <tr>
    	<td><strong>Điện thoại:</strong></td>
        <td style="padding-right:5px; "><?=$arrayDataSettingWeb[0]['dien_thoai']?></td>
        <td><strong>Số giấy phép:</strong></td>
        <td style="padding-right:10px; "><?=$arrayDataSettingWeb[0]['so_giay_phep']?></td>
    </tr>
    <tr>
    	<td><strong>Mã số thuế:</strong></td>
        <td style="padding-right:5px; "><?=$arrayDataSettingWeb[0]['ma_so_thue']?></td>
        <td><strong>Số tài khoản:</strong></td>
        <td style="padding-right:10px; "><?=$arrayDataSettingWeb[0]['so_tk']?></td>
    </tr>
</table>
<table border="0" cellpadding="3" cellspacing="0" width="100%" class="khung_home" style="padding-top:20px; line-height:22px; ">
	<tr>
		<td style="text-transform:uppercase; font-weight:bold; " colspan="2">
			Thông tin liên hệ:
		</td>
	</tr>
	<tr>
		<td width="13%" style="padding-top:20px; ">
			<strong>Họ tên:</strong><span style="color:#FF0000; ">*</span>
		</td>
		<td width="87%" style="padding-top:20px; ">
			<input class="input" id="name" maxLength="255" style="width:270px; " name="hovaten" value="<?= $_POST['hovaten']?>">
		</td>
	</tr>
	<tr>
		<td>
			<strong>Tên công ty:</strong>
		</td>
		<td>
			<input class="input" id="tencongty" maxLength="255" style="width:270px; " name="tencongty" value="<?= $_POST['tencongty']?>">
		</td>
	</tr>
	<tr>
		<td>
			<strong>Điện thoại:</strong><span style="color:#FF0000; ">*</span>
		</td>
		<td>
			<input class="input" id="dienthoai" maxLength="255" style="width:270px; " name="dienthoai" value="<?= $_POST['dienthoai']?>">
		</td>
	</tr>
	<tr>
		<td>
			<strong>Email:</strong><span style="color:#FF0000; ">*</span>
		</td>
		<td>
			<input class="input" id="email" maxLength="255" style="width:270px; " name="email" value="<?= $_POST['email']?>">
		</td>
	</tr>
	<tr>
		<td>
			<strong>Địa chỉ:</strong>
		</td>
		<td>
			<input class="input" id="dia_chi" maxLength="255" style="width:270px; " name="dia_chi" value="<?= $_POST['dia_chi']?>">
		</td>
	</tr>
	<tr>
		<td valign="top">
			<strong>Ý kiến:</strong><span style="color:#FF0000; ">*</span>
		</td>
		<td>
			<textarea name="yeucau" cols="48" rows="9" id="yeucau" style=" width:270px;"><?= $_POST['yeucau']?></textarea>
		</td>
	</tr>
	<tr>
		<td>&nbsp;
			
		</td>
		<td align="left">
			<input name="Submit" type="submit" id="submit" value="Gửi đi">   
			&nbsp;&nbsp;
			<input name="Reset" type="reset" id="Reset" value="Làm lại"> 
		</td>
	</tr>
</table>
<div class="bg_l_b"><div class="bg_r_b"><div class="bg_c_b"></div></div></div>
</form>
</body>
<?php
}
?>